import request from "@/utils/request";

// 查询活动列表
export function listEnterpriseActivity(query) {
  return request({
    url: "/kjy/enterpriseActivity/list",
    method: "get",
    params: query,
  });
}

// 查询活动详细
export function getEnterpriseActivity(id) {
  return request({
    url: "/kjy/enterpriseActivity/" + id,
    method: "get",
  });
}

// 新增活动
export function addEnterpriseActivity(data) {
  return request({
    url: "/kjy/enterpriseActivity",
    method: "post",
    data: data,
  });
}

// 修改活动
export function updateEnterpriseActivity(data) {
  return request({
    url: "/kjy/enterpriseActivity",
    method: "put",
    data: data,
  });
}

// 删除活动
export function delEnterpriseActivity(id) {
  return request({
    url: "/kjy/enterpriseActivity/" + id,
    method: "delete",
  });
}
